<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
            <%
	//检查会话中是否有 "admin" 属性
	Object fdyObj = session.getAttribute("admin");
	if (fdyObj == null) {
	    response.sendRedirect("Login.jsp");
	    return;
	}
%>  
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>管理员页面</title>
<link href="../css/Utils.css" rel="stylesheet" type="text/css" />
</head>
<body>

<!-- 头部 -->
<div class="header" ><br>
<nerong>&nbsp;&nbsp;管理员页面&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;</nerong>

 <button onclick="confirmLogout('<%= (String)session.getAttribute("admin") %>','admin')">退出登录</button>

</div><br>

<div class="left" >
<table width="80%" height="80%">
<th>
<nerong>管理员可选择内容</nerong>

</th>

<tr>
<td>
<a>&emsp;个人信息</a><br>
</td>
</tr>

<tr>
<td>
<a href="../View_xx/XxStudent.jsp">&emsp;学生信息管理</a><br>
</td>
</tr>


<tr>
<td>
<a href="../View_xx/XxFdy.jsp">&emsp;辅导员信息管理</a><br>
</td>
</tr>

<tr>
<td>
<a href="../View_xx/XxSuGuan.jsp">&emsp;宿管信息管理</a><br>
</td>
</tr>


<tr>
<td>
<a href = "../View_SuShe/SuSheAdminMain.jsp">&emsp;宿舍入住管理</a><br>
</td>
</tr>




</table>



</div>



<div class="context" >
<!-- 增加宿管 -->
	
		<h2>增加宿管</h2>
			

		<form action="../XxSgAddServlet" method="post"> 
            <div >
                <label for="roomid">id</label>
                <input type="text"  name="id"  >
            </div>
            <div >
                <label for="quota">姓名</label>
                <input type="text"  name="name" >
            </div>
            <div >
                <label for="guige">负责楼栋</label>
                <input type="text"  name="build" >
            </div>
            <div class="form-buttons">
                <button type="submit" name="action" value="update">确认增加</button>
                <button type="button" onclick="window.location.href='XxSuGuan.jsp'">取消增加</button>
            </div>
        </form>

</div>

</body>
</html>